<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      parted-3.3
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;5.&nbsp;File Systems and Disk Management
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="gptfdisk.html" title=
          "gptfdisk-1.0.5">Prev</a>
          <p>
            gptfdisk-1.0.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="reiserfs.html" title=
          "reiserfsprogs-3.6.27">Next</a>
          <p>
            reiserfsprogs-3.6.27
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="parted" name="parted"></a>parted-3.3
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to parted
        </h2>
        <p>
          The <span class="application">Parted</span> package is a disk
          partitioning and partition resizing tool.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://ftp.gnu.org/gnu/parted/parted-3.3.tar.xz">https://ftp.gnu.org/gnu/parted/parted-3.3.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download (FTP): <a class="ulink" href=
                "ftp://ftp.gnu.org/gnu/parted/parted-3.3.tar.xz">ftp://ftp.gnu.org/gnu/parted/parted-3.3.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: 090655d05f3c471aa8e15a27536889ec
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 1.7 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 34 MB (additional 3 MB for the
                tests and additional 1 MB for optional PDF and Postscript
                documentation)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 0.3 SBU (additional 1.7 SBU for the
                tests)
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Parted Dependencies
        </h3>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="lvm2.html" title=
          "LVM2-2.03.08">LVM2-2.03.08</a> (device-mapper, required if
          building <span class="application">udisks</span>)
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="dosfstools.html" title=
          "dosfstools-4.1">dosfstools-4.1</a>, <a class="xref" href=
          "../general/pth.html" title="Pth-2.0.7">Pth-2.0.7</a>, <a class=
          "xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> (or <a class="xref"
          href="../pst/tl-installer.html" title=
          "install-tl-unx">install-tl-unx</a>), and <a class="ulink" href=
          "https://metacpan.org/pod/Digest::CRC">Digest::CRC</a> (for tests)
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/parted">http://wiki.linuxfromscratch.org/blfs/wiki/parted</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of parted
        </h2>
        <p>
          Install <span class="application">Parted</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">./configure --prefix=/usr --disable-static &amp;&amp;
make &amp;&amp;

make -C doc html                                       &amp;&amp;
makeinfo --html      -o doc/html       doc/parted.texi &amp;&amp;
makeinfo --plaintext -o doc/parted.txt doc/parted.texi</kbd>
</pre>
        <p>
          If you have <a class="xref" href="../pst/texlive.html" title=
          "texlive-20190410-source">texlive-20190410</a> installed and wish
          to create PDF and Postcript documentation issue the following
          commands:
        </p>
        <pre class="userinput">
<kbd class=
"command">texi2pdf             -o doc/parted.pdf doc/parted.texi &amp;&amp;
texi2dvi             -o doc/parted.dvi doc/parted.texi &amp;&amp;
dvips                -o doc/parted.ps  doc/parted.dvi</kbd>
</pre>
        <p>
          If you wish to run the test suite, first remove a couple of tests
          that are known to fail in a BLFS environment:
        </p>
        <pre class="userinput">
<kbd class=
"command">sed -i '/t0251-gpt-unicode.sh/d' tests/Makefile &amp;&amp;
sed -i '/t6002-dm-busy.sh/d' tests/Makefile</kbd>
</pre>
        <p>
          To test the results, issue, as the <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make check</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            Many tests are skipped if not run as the <code class=
            "systemitem">root</code> user.
          </p>
        </div>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install &amp;&amp;
install -v -m755 -d /usr/share/doc/parted-3.3/html &amp;&amp;
install -v -m644    doc/html/* \
                    /usr/share/doc/parted-3.3/html &amp;&amp;
install -v -m644    doc/{FAT,API,parted.{txt,html}} \
                    /usr/share/doc/parted-3.3</kbd>
</pre>
        <p>
          Install the optional PDF and Postscript documentation by issuing
          the following command as the <code class="systemitem">root</code>
          user:
        </p>
        <pre class="root">
<kbd class=
"command">install -v -m644 doc/FAT doc/API doc/parted.{pdf,ps,dvi} \
                    /usr/share/doc/parted-3.3</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>--disable-static</code></em>: This
          switch prevents installation of static versions of the libraries.
        </p>
        <p>
          <code class="option">--disable-device-mapper</code>: This option
          disables device mapper support. Add this parameter if you have not
          installed <span class="application">LVM2</span>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">parted and partprobe</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">libparted.so and
              libparted-fs-resize.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">/usr/include/parted and
              /usr/share/doc/parted-3.3</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="parted-prog" name="parted-prog"></a><span class=
                    "term"><span class=
                    "command"><strong>parted</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a partition manipulation program.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="partprobe" name="partprobe"></a><span class=
                    "term"><span class=
                    "command"><strong>partprobe</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    informs the OS of partition table changes.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="libparted" name="libparted"></a><span class=
                    "term"><code class="filename">libparted.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains the <span class="application">Parted</span> API
                    functions.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-18 14:50:03 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="gptfdisk.html" title=
          "gptfdisk-1.0.5">Prev</a>
          <p>
            gptfdisk-1.0.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="reiserfs.html" title=
          "reiserfsprogs-3.6.27">Next</a>
          <p>
            reiserfsprogs-3.6.27
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="filesystems.html" title=
          "Chapter&nbsp;5.&nbsp;File Systems and Disk Management">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
